package com.ebuy.shopping.exception;

/**
 * 
 * @ClassName: OtherException
 * @Description: 自定义未知异常
 * @author 郭文峰
 * @date 2017年8月10日 下午3:40:12
 * 
 */
public class OtherException extends RuntimeException
{

    /** serialVersionUID */
    private static final long serialVersionUID = 2332608236621015980L;

    private String code;

    public OtherException()
    {
        super();
    }

    public OtherException(String message)
    {
        super(message);
    }

    public OtherException(String code, String message)
    {
        super(message);
        this.code = code;
    }

    public OtherException(Throwable cause)
    {
        super(cause);
    }

    public OtherException(String message, Throwable cause)
    {
        super(message, cause);
    }

    public OtherException(String code, String message, Throwable cause)
    {
        super(message, cause);
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

}